
package com.zjff.myshop.admin.service;

import com.zjff.myshop.admin.pojo.vo.HomeCarouselVO;
import com.zjff.myshop.admin.pojo.vo.HomeGoodsVO;
import com.zjff.myshop.entity.Home;

import java.util.HashMap;
import java.util.List;

public interface HomeService {

    boolean insert(Home home);

    boolean deleteById(Integer id);

    boolean deleteBatch(Integer[] ids);

    boolean update(Home home);

    Home selectById(Integer id);

    /**
     * 返回固定数量的首页配置商品对象(首页调用)
     */
    List<HomeGoodsVO> selectGoodsVOList(HashMap map);

    /**
     * 返回固定数量的首页轮播对象(首页调用)
     */
    List<HomeCarouselVO> selectCarouselVOList(HashMap map);
}
